CC = gcc
CFLAGS = -g
OBJ = main.o door_interface.o

door-dbg: $(OBJ)
	$(CC) -o $@ $^  $(CFLAGS)
door: $(OBJ)
	$(CC) -o $@ $^
libdoor: door_interface.o
	$(CC) -o $@.so -shared door_interface.o -lgcc
	cp $@.so ../
clean:
	 rm -f door door-dbg *.o *.so
